package com.ls.Filter;

import java.net.MalformedURLException;
import java.net.URL;

public class URLFilter{
	URL url;
	public URLFilter(URL url){
		this.url = url;
	}
	
	public URL filter() throws MalformedURLException{
		StringBuffer sb = new StringBuffer();
		sb.append(url.toString().replace(" ", "%20"));
		return new URL(sb.toString());
	}
	
}
